package cn.fanqinghong.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * FAN
 * 课程订单创建的相关参数
 * 2022/7/29  14:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseOrderCreatParamsDto {
    //订单的课程id
    @NotEmpty(message = "课程ID不能为空")
    private List<Long> courseIds;
    //支付方式
    @NotNull(message = "支付方式必选")
    private Integer payType;
    //唯一tokenid
    @NotNull(message = "订单已过期")
    private String token;
    //是否是普通下单0：普通  1：秒杀
    @NotNull(message = "类型必选")
    private Integer type;
}
